Guide to using IronOCR Filters

This article was translated from English: Does it need improvement?
Translated
View the article in English

IronOCR 提供您所需的工具來讀取可能需要以濾鏡形式進行預處理的影像。 您可以從多種濾鏡中選擇,這些濾鏡可以處理您的影像,使其成為可處理的影像。

快速入門:應用篩選器清理 OCR 影像

只需一連串簡單的呼叫,您就可以套用去噪 (DeNoise)、二值化 (Binarize) 和傾斜 (Deskew) 過濾器,在 OCR 之前改善掃描的清晰度。 本範例說明使用 IronOCR 內建的濾鏡增強圖片是多麼容易,而且可以立即上手。

Nuget IconGet started making PDFs with NuGet now:

  1. Install IronOCR with NuGet Package Manager

    PM > Install-Package IronOcr

  2. Copy and run this code snippet.

    using var input = new IronOcr.OcrInput("scan.jpg"); input.DeNoise(true).Binarize().Deskew(45); var result = new IronOcr.IronTesseract().Read(input);
  3. Deploy to test on your live environment

    Start using IronOCR in your project today with a free trial
    arrow pointer

OCR 影像篩選器清單

改變影像方向的濾鏡 處理影像顏色的濾鏡改善影像對比的濾鏡減少影像雜訊的濾鏡篩選器範例與用法調試篩選器 / 篩選器在做什麼? 如果您在程式中讀取影像或 BarCode 有困難,有一種方法可以儲存篩選結果的影像。 如此一來,您就可以調試並清楚瞭解每個濾鏡的功能,以及它如何處理您的影像。 ```csharp :path=/static-assets/ocr/content-code-examples/tutorials/c-sharp-ocr-image-filters-2.cs ```

過濾器使用案例

旋轉篩選器說明用例程式碼範例 | | ### Deskew [API Reference](https://ironsoftware.com/csharp/ocr/object-reference/api/IronOcr.OcrInput.html#IronOcr_OcrInput_Deskew_IronOcr_IronTesseract_System_Int32_IronOcr_OrientationConfidence_)

篩選器說明

請注意This method returns a boolean, which is true if the filter was applied, and false if it failed to apply due to not being able to detect image orientation. 如果該頁面沒有內容定義方向,這將會失敗。